package com.laicunba.pojo;

import java.math.BigDecimal;

import org.springframework.stereotype.Component;

import com.laicunba.annotation.MyColumn;
import com.laicunba.annotation.MyTable;

@Component
@MyTable
public class AccountDO extends BaseDO {
	private String userId; // 客户ID
	private String accountType;// platform:平台 ,investor:投资者
	private String accountNo;// 默认是GUID,可以重置成像银行卡一样的卡号
	private String subjectCode;// 科目代码
	private String subjectName;// 科目名称
	private String subjectType;// 科目类型,assets (A) :资产, liability (L):负债
	/**
	 * 从这里往下,其实都是试算表的一个最近拷贝
	 */
	private String balanceSheetId;
	@MyColumn(type = "int8 DEFAULT 0")
	private long rowNum;
	private BigDecimal dr;// 发生金额
	private BigDecimal cr;// 发生金额
	private String optUserId;
	private String certificateId;// 凭证ID: 可以是订单ID,充值ID等
	private String remark;// 摘要
	private String ext;// 扩展字段
	private BigDecimal balance;// 余额
	private String sign;

	public String getUserId() {
		return userId;
	}

	public String getAccountType() {
		return accountType;
	}

	public String getAccountNo() {
		return accountNo;
	}

	public String getSubjectCode() {
		return subjectCode;
	}

	public String getSubjectName() {
		return subjectName;
	}

	public String getSubjectType() {
		return subjectType;
	}

	public String getBalanceSheetId() {
		return balanceSheetId;
	}

	public long getRowNum() {
		return rowNum;
	}

	public BigDecimal getDr() {
		return dr;
	}

	public BigDecimal getCr() {
		return cr;
	}

	public String getOptUserId() {
		return optUserId;
	}

	public String getCertificateId() {
		return certificateId;
	}

	public String getRemark() {
		return remark;
	}

	public String getExt() {
		return ext;
	}

	public BigDecimal getBalance() {
		return balance;
	}

	public String getSign() {
		return sign;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public void setAccountType(String accountType) {
		this.accountType = accountType;
	}

	public void setAccountNo(String accountNo) {
		this.accountNo = accountNo;
	}

	public void setSubjectCode(String subjectCode) {
		this.subjectCode = subjectCode;
	}

	public void setSubjectName(String subjectName) {
		this.subjectName = subjectName;
	}

	public void setSubjectType(String subjectType) {
		this.subjectType = subjectType;
	}

	public void setBalanceSheetId(String balanceSheetId) {
		this.balanceSheetId = balanceSheetId;
	}

	public void setRowNum(long rowNum) {
		this.rowNum = rowNum;
	}

	public void setDr(BigDecimal dr) {
		this.dr = dr;
	}

	public void setCr(BigDecimal cr) {
		this.cr = cr;
	}

	public void setOptUserId(String optUserId) {
		this.optUserId = optUserId;
	}

	public void setCertificateId(String certificateId) {
		this.certificateId = certificateId;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public void setExt(String ext) {
		this.ext = ext;
	}

	public void setBalance(BigDecimal balance) {
		this.balance = balance;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

}
